package com.enjoy.spring.cloudalibabachapter03.config;

import com.enjoy.spring.cloudalibabachapter03.anno.MyEnableAutoImport;
import com.enjoy.spring.cloudalibabachapter03.condition.WindowsCondition;
import com.enjoy.spring.cloudalibabachapter03.pojo.ThirdClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
//@MyEnableAutoImport
public class AppConfig {


    @Bean
    @Conditional(WindowsCondition.class)
    public ThirdClass thirdClass(){
        return new ThirdClass();
    }

}
